<?php
	$tel = $_REQUEST['tel'];
	$pas = $_REQUEST['pas1'];
	$con = mysqli_connect('localhost', 'root', '','friday');
	mysqli_set_charset($con, 'utf8');
	
	//查询输入框的信息在数据库里是否能匹配到
	$sql = "select * from user where tel='{$tel}' and pas='{$pas}'";	
	$res = mysqli_query($con, $sql);
	if(mysqli_num_rows($res)){
		echo '登录成功';
	}else{
		echo '请先注册';
	}
	mysqli_close($con);
?>